package com.hckjsec.cloud.service.impl;

import java.util.List;

import com.hckjsec.cloud.domain.AppletsConfigMatterDetail;
import com.hckjsec.cloud.mapper.AppletsConfigMatterDetailMapper;
import com.hckjsec.cloud.service.IAppletsConfigMatterDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 配置事项明细Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-05
 */
@Service
public class AppletsConfigMatterDetailServiceImpl implements IAppletsConfigMatterDetailService
{
    @Autowired
    private AppletsConfigMatterDetailMapper appletsConfigMatterDetailMapper;

    /**
     * 查询配置事项明细
     * 
     * @param id 配置事项明细ID
     * @return 配置事项明细
     */
    @Override
    public AppletsConfigMatterDetail selectAppletsConfigMatterDetailById(Long id)
    {
        return appletsConfigMatterDetailMapper.selectAppletsConfigMatterDetailById(id);
    }

    /**
     * 查询配置事项明细列表
     * 
     * @param appletsConfigMatterDetail 配置事项明细
     * @return 配置事项明细
     */
    @Override
    public List<AppletsConfigMatterDetail> selectAppletsConfigMatterDetailList(AppletsConfigMatterDetail appletsConfigMatterDetail)
    {
        return appletsConfigMatterDetailMapper.selectAppletsConfigMatterDetailList(appletsConfigMatterDetail);
    }

    /**
     * 新增配置事项明细
     * 
     * @param appletsConfigMatterDetail 配置事项明细
     * @return 结果
     */
    @Override
    public int insertAppletsConfigMatterDetail(AppletsConfigMatterDetail appletsConfigMatterDetail)
    {
        return appletsConfigMatterDetailMapper.insertAppletsConfigMatterDetail(appletsConfigMatterDetail);
    }

    /**
     * 修改配置事项明细
     * 
     * @param appletsConfigMatterDetail 配置事项明细
     * @return 结果
     */
    @Override
    public int updateAppletsConfigMatterDetail(AppletsConfigMatterDetail appletsConfigMatterDetail)
    {
        return appletsConfigMatterDetailMapper.updateAppletsConfigMatterDetail(appletsConfigMatterDetail);
    }

    /**
     * 批量删除配置事项明细
     * 
     * @param ids 需要删除的配置事项明细ID
     * @return 结果
     */
    @Override
    public int deleteAppletsConfigMatterDetailByIds(Long[] ids)
    {
        return appletsConfigMatterDetailMapper.deleteAppletsConfigMatterDetailByIds(ids);
    }

    /**
     * 删除配置事项明细信息
     * 
     * @param id 配置事项明细ID
     * @return 结果
     */
    @Override
    public int deleteAppletsConfigMatterDetailById(Long id)
    {
        return appletsConfigMatterDetailMapper.deleteAppletsConfigMatterDetailById(id);
    }

    @Override
    public int deleteAppletsConfigParamDetailByNumberId(AppletsConfigMatterDetail appletsConfigMatterDetail) {
        return appletsConfigMatterDetailMapper.deleteAppletsConfigParamDetailByNumberId(appletsConfigMatterDetail);
    }

    @Override
    public int deleteAppletsConfigMatterDetailByConfig(Long configId) {
        return appletsConfigMatterDetailMapper.deleteAppletsConfigMatterDetailByConfig(configId);
    }

    @Override
    public List<String> selectListCategoryByConfigId(Long configId) {
        return appletsConfigMatterDetailMapper.selectListCategoryByConfigId(configId);
    }
}
